//JS = ES + DOM + BOM
//ES6带来的新特性---ESModule
//import {} from "./xxxx.js"
//export

// //CommonJS Module
// const user = require("./text.js");
// console.log(user.name)

// //利用解构(对象)
// const {name} = require("./text.js")
// console.log(name)

// //解构时重命名
// const {name : usernames} = require("./text.js")
// console.log(usernames)

//解构数组
const [one,two,three,four] = [66 , 666 , 6666 , 66666]
console.log("数组解构：",one,two,three,four)

import fx,{username,grade} from "./text.js"
console.log(username,grade)
console.log(fx.message.age,fx.message.course)
console.log("sum(3,4,5) = " + fx.sum(3,4,5))